package com.core.zyyz.amc.modules.domain;


import com.core.zyyz.annotateUtil.I18n;

import java.io.Serializable;

public class BaseDictionary implements Serializable {
    private static final long serialVersionUID = -2954290964594994564L;
    private String appCode;
    private String type;
    @I18n(
            model = "dict",
            field = "dictName",
            attrs = {"appCode", "type", "value"}
    )
    private String label;
    private String value;
    private String i18nCode;
    private Integer sortNo;

    public String getAppCode() {
        return this.appCode;
    }

    public String getType() {
        return this.type;
    }

    public String getLabel() {
        return this.label;
    }

    public String getValue() {
        return this.value;
    }

    public String getI18nCode() {
        return this.i18nCode;
    }

    public Integer getSortNo() {
        return this.sortNo;
    }

    public void setAppCode(final String appCode) {
        this.appCode = appCode;
    }

    public void setType(final String type) {
        this.type = type;
    }

    public void setLabel(final String label) {
        this.label = label;
    }

    public void setValue(final String value) {
        this.value = value;
    }

    public void setI18nCode(final String i18nCode) {
        this.i18nCode = i18nCode;
    }

    public void setSortNo(final Integer sortNo) {
        this.sortNo = sortNo;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof BaseDictionary)) {
            return false;
        } else {
            BaseDictionary other = (BaseDictionary)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$appCode = this.getAppCode();
                Object other$appCode = other.getAppCode();
                if (this$appCode == null) {
                    if (other$appCode != null) {
                        return false;
                    }
                } else if (!this$appCode.equals(other$appCode)) {
                    return false;
                }

                Object this$type = this.getType();
                Object other$type = other.getType();
                if (this$type == null) {
                    if (other$type != null) {
                        return false;
                    }
                } else if (!this$type.equals(other$type)) {
                    return false;
                }

                Object this$label = this.getLabel();
                Object other$label = other.getLabel();
                if (this$label == null) {
                    if (other$label != null) {
                        return false;
                    }
                } else if (!this$label.equals(other$label)) {
                    return false;
                }

                label62: {
                    Object this$value = this.getValue();
                    Object other$value = other.getValue();
                    if (this$value == null) {
                        if (other$value == null) {
                            break label62;
                        }
                    } else if (this$value.equals(other$value)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$i18nCode = this.getI18nCode();
                    Object other$i18nCode = other.getI18nCode();
                    if (this$i18nCode == null) {
                        if (other$i18nCode == null) {
                            break label55;
                        }
                    } else if (this$i18nCode.equals(other$i18nCode)) {
                        break label55;
                    }

                    return false;
                }

                Object this$sortNo = this.getSortNo();
                Object other$sortNo = other.getSortNo();
                if (this$sortNo == null) {
                    if (other$sortNo != null) {
                        return false;
                    }
                } else if (!this$sortNo.equals(other$sortNo)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof BaseDictionary;
    }

    public String toString() {
        return "BaseDictionary(appCode=" + this.getAppCode() + ", type=" + this.getType() + ", label=" + this.getLabel() + ", value=" + this.getValue() + ", i18nCode=" + this.getI18nCode() + ", sortNo=" + this.getSortNo() + ")";
    }

    public BaseDictionary() {
    }
}
